package com.vipshop.core.service.impl;

import com.vipshop.core.base.impl.BaseServiceImpl;
import com.vipshop.core.entity.Member;
import com.vipshop.core.repository.MemberRepository;
import com.vipshop.core.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;

/**
 * @author sxzku
 * @version 1.0
 * @className UserServiceImpl
 * @description TODO
 * @date 2019/3/10 23:37
 **/

@Service
public class MemberServiceImpl extends BaseServiceImpl<Member,Long> implements MemberService {
    @Autowired
    private MemberRepository userRepository;
    public Integer findName(@Param("name") String name){
        return  userRepository.findName(name);
    }
}
